package com.zhuzi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : zga
 * @date : 2017-02-26
 */
@Controller
@RequestMapping("/page")
public class PageController {

    @RequestMapping("/index.html")
    public String index() {
        return "index";
    }

    @RequestMapping("/pageIndex.html")
    public String pageIndex() {
        //prefix:WEB-INF/view
        //.jsp
        //--  /WEB-INF/view/page/index.jsp

        System.out.println("hello,pageIndex");
        return "page/index";
    }
}
//  localhost:8080/page/index.html